import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import java.util.Locale;

public class Text {
    public static void main(String[] args) {
       /*  String str1="welcome bit";
         String str2="come";*/
        func("welcome bit","come");
    }
    public static void func(String str1,String str2) {
        List<Character> ret = new ArrayList<>();
        for (int i = 0; i < str1.length(); i++) {
           char ch = str1.charAt(i);
           if(!str2.contains(ch+"")){
               ret.add(ch);
           }
        }
        //System.out.println(ret);
        for (int i = 0; i < ret.size(); i++) {
            System.out.print(ret.get(i));
        }
        System.out.println();
    }
}
